package edu.hm.compiler.scanner.dfa.state.impl;

import edu.hm.compiler.scanner.dfa.state.IState;
import edu.hm.compiler.scanner.dfa.symbol.ISymbol;
import edu.hm.compiler.scanner.token.ITokenClass;

public class ErrorState implements IState
{

    @Override
    public ITokenClass getTokenClass()
    {
        throw new IllegalStateException( "ERROR" );
    }

    @Override
    public IState getState( ISymbol symbol )
    {
        return this;
    }

    @Override
    public IState addState( ISymbol symbol, IState state )
    {
        throw new IllegalStateException( "ERROR" );
    }

    @Override
    public int getName()
    {
        return -1;
    }

}
